<?php

// Menu
define("EW_MENUBAR_CLASSNAME", "yuimenu", TRUE);
define("EW_MENUBAR_ITEM_CLASSNAME", "yuimenuitem", TRUE);
define("EW_MENUBAR_ITEM_LABEL_CLASSNAME", "yuimenuitemlabel", TRUE);
define("EW_MENU_CLASSNAME", "yuimenu", TRUE);
define("EW_MENU_ITEM_CLASSNAME", "yuimenuitem", TRUE); // Vertical
define("EW_MENU_ITEM_LABEL_CLASSNAME", "yuimenuitemlabel", TRUE); // Vertical
?>
<?php

// Menu Rendering event
function Menu_Rendering(&$Menu) {

	// Change menu items here
}

// MenuItem Adding event
function MenuItem_Adding(&$Item) {

	//var_dump($Item);
	// Return FALSE if menu item not allowed

	return TRUE;
}
?>
<!-- Begin Main Menu -->
<div class="phpmaker">
<?php

// Generate all menu items
$RootMenu = new cMenu("RootMenu");
$RootMenu->IsRoot = TRUE;
$RootMenu->AddMenuItem(43, $Language->MenuPhrase("43", "MenuText"), "", -1, "", IsLoggedIn(), TRUE);
$RootMenu->AddMenuItem(20, $Language->MenuPhrase("20", "MenuText"), "articlelist.php?cmd=resetall", 43, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(1, $Language->MenuPhrase("1", "MenuText"), "afterthoughtlist.php", 43, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(11, $Language->MenuPhrase("11", "MenuText"), "terapilist.php", 43, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(9, $Language->MenuPhrase("9", "MenuText"), "zpagelist.php", 43, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(2, $Language->MenuPhrase("2", "MenuText"), "bannerlist.php?cmd=resetall", 43, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(102, $Language->MenuPhrase("102", "MenuText"), "", -1, "", IsLoggedIn(), TRUE);
$RootMenu->AddMenuItem(76, $Language->MenuPhrase("76", "MenuText"), "stokislist.php?cmd=resetall", 102, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(75, $Language->MenuPhrase("75", "MenuText"), "citylist.php", 102, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(45, $Language->MenuPhrase("45", "MenuText"), "", -1, "", IsLoggedIn(), TRUE);
$RootMenu->AddMenuItem(13, $Language->MenuPhrase("13", "MenuText"), "userlist.php", 45, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(5, $Language->MenuPhrase("5", "MenuText"), "feedbacklist.php?cmd=resetall", 45, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(19, $Language->MenuPhrase("19", "MenuText"), "addresslist.php?cmd=resetall", 45, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(8, $Language->MenuPhrase("8", "MenuText"), "massmaillist.php", 45, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(44, $Language->MenuPhrase("44", "MenuText"), "", -1, "", IsLoggedIn(), TRUE);
$RootMenu->AddMenuItem(3, $Language->MenuPhrase("3", "MenuText"), "categorylist.php", 44, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(7, $Language->MenuPhrase("7", "MenuText"), "itemlist.php?cmd=resetall", 3, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(47, $Language->MenuPhrase("47", "MenuText"), "", -1, "", IsLoggedIn(), TRUE);
$RootMenu->AddMenuItem(12, $Language->MenuPhrase("12", "MenuText"), "transactionlist.php?cmd=resetall", 47, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(46, $Language->MenuPhrase("46", "MenuText"), "", -1, "", IsLoggedIn(), TRUE);
$RootMenu->AddMenuItem(17, $Language->MenuPhrase("17", "MenuText"), "shipperlist.php", 46, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(16, $Language->MenuPhrase("16", "MenuText"), "locationlist.php?cmd=resetall", 17, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(72, $Language->MenuPhrase("72", "MenuText"), "location_trace_statelist.php?cmd=resetall", 16, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(18, $Language->MenuPhrase("18", "MenuText"), "weightlist.php?cmd=resetall", 16, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(48, $Language->MenuPhrase("48", "MenuText"), "", -1, "", IsLoggedIn(), TRUE);
$RootMenu->AddMenuItem(6, $Language->MenuPhrase("6", "MenuText"), "imagelist.php", 48, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(73, $Language->MenuPhrase("73", "MenuText"), "sequencelist.php", 48, "", IsLoggedIn(), FALSE);
$RootMenu->AddMenuItem(71, $Language->MenuPhrase("71", "MenuText"), "", -1, "", IsLoggedIn(), TRUE);
$RootMenu->AddMenuItem(-1, $Language->Phrase("Logout"), "logout.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(-1, $Language->Phrase("Login"), "login.php", -1, "", !IsLoggedIn() && substr(@$_SERVER["URL"], -1 * strlen("login.php")) <> "login.php");
$RootMenu->Render();
?>
</div>
<!-- End Main Menu -->
<script type="text/javascript">
<!--

// init the menu
var RootMenu = new YAHOO.widget.Menu("RootMenu", { position: "static", hidedelay: 750, lazyload: true });
RootMenu.render();        

//-->
</script>
